<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/gui/painting/qpaintdevice_x11.cpp -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QPaintDevice</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QPaintDevice</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qpaintdevice.html">QPaintDevice class reference</a></li></ul></p>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11Cells">x11Cells</a></b> () const</li>
<li><div class="fn"/>Qt::HANDLE <b><a href="qpaintdevice-qt3.html#x11Colormap">x11Colormap</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qpaintdevice-qt3.html#x11DefaultColormap">x11DefaultColormap</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qpaintdevice-qt3.html#x11DefaultVisual">x11DefaultVisual</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11Depth">x11Depth</a></b> () const</li>
<li><div class="fn"/>Display * <b><a href="qpaintdevice-qt3.html#x11Display">x11Display</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11Screen">x11Screen</a></b> () const</li>
<li><div class="fn"/>void * <b><a href="qpaintdevice-qt3.html#x11Visual">x11Visual</a></b> () const</li>
</ul>
<h3>Static Public Members</h3>
<ul>
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppCells">x11AppCells</a></b> ( int <i>screen</i> = -1 )</li>
<li><div class="fn"/>Qt::HANDLE <b><a href="qpaintdevice-qt3.html#x11AppColormap">x11AppColormap</a></b> ( int <i>screen</i> = -1 )</li>
<li><div class="fn"/>bool <b><a href="qpaintdevice-qt3.html#x11AppDefaultColormap">x11AppDefaultColormap</a></b> ( int <i>screen</i> = -1 )</li>
<li><div class="fn"/>bool <b><a href="qpaintdevice-qt3.html#x11AppDefaultVisual">x11AppDefaultVisual</a></b> ( int <i>screen</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppDepth">x11AppDepth</a></b> ( int <i>screen</i> = -1 )</li>
<li><div class="fn"/>Display * <b><a href="qpaintdevice-qt3.html#x11AppDisplay">x11AppDisplay</a></b> ()</li>
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppDpiX">x11AppDpiX</a></b> ( int <i>screen</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppDpiY">x11AppDpiY</a></b> ( int <i>screen</i> = -1 )</li>
<li><div class="fn"/>Qt::HANDLE <b><a href="qpaintdevice-qt3.html#x11AppRootWindow">x11AppRootWindow</a></b> ( int <i>screen</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppScreen">x11AppScreen</a></b> ()</li>
<li><div class="fn"/>void * <b><a href="qpaintdevice-qt3.html#x11AppVisual">x11AppVisual</a></b> ( int <i>screen</i> = -1 )</li>
<li><div class="fn"/>void <b><a href="qpaintdevice-qt3.html#x11SetAppDpiX">x11SetAppDpiX</a></b> ( int <i>dpi</i>, int <i>screen</i> )</li>
<li><div class="fn"/>void <b><a href="qpaintdevice-qt3.html#x11SetAppDpiY">x11SetAppDpiY</a></b> ( int <i>dpi</i>, int <i>screen</i> )</li>
</ul>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="x11AppCells"></a>int QPaintDevice::x11AppCells ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#cells">QX11Info::cells</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> int cells = QPaintDevice::x11AppCells(screen);</font></pre>
<p>you can rewrite it as</p>
<pre> int cells = qApp-&gt;x11Info(screen).cells();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppColormap"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QPaintDevice::x11AppColormap ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#colormap">QX11Info::colormap</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> unsigned long colormap = QPaintDevice::x11AppColormap(screen);</font></pre>
<p>you can rewrite it as</p>
<pre> unsigned long colormap = qApp-&gt;x11Info(screen).colormap();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppDefaultColormap"></a>bool QPaintDevice::x11AppDefaultColormap ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#defaultColormap">QX11Info::defaultColormap</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool isDefault = QPaintDevice::x11AppDefaultColormap(screen);</font></pre>
<p>you can rewrite it as</p>
<pre> bool isDefault = qApp-&gt;x11Info(screen).defaultColormap();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppDefaultVisual"></a>bool QPaintDevice::x11AppDefaultVisual ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#defaultVisual">QX11Info::defaultVisual</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool isDefault = QPaintDevice::x11AppDefaultVisual(screen);</font></pre>
<p>you can rewrite it as</p>
<pre> bool isDefault = qApp-&gt;x11Info(screen).defaultVisual();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppDepth"></a>int QPaintDevice::x11AppDepth ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#depth">QX11Info::depth</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> int depth = QPaintDevice::x11AppDepth(screen);</font></pre>
<p>you can rewrite it as</p>
<pre> int depth = qApp-&gt;x11Info(screen).depth();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppDisplay"></a>Display * QPaintDevice::x11AppDisplay ()&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#display">QX11Info::display</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> Display *display = QPaintDevice::x11AppDisplay();</font></pre>
<p>you can rewrite it as</p>
<pre> Display *display = qApp-&gt;x11Info().display();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppDpiX"></a>int QPaintDevice::x11AppDpiX ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#appDpiX">QX11Info::appDpiX</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool isDefault = QPaintDevice::x11AppDpiX(screen);</font></pre>
<p>you can rewrite it as</p>
<pre> bool isDefault = qApp-&gt;x11Info(screen).appDpiX();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppDpiY"></a>int QPaintDevice::x11AppDpiY ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#appDpiY">QX11Info::appDpiY</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool isDefault = QPaintDevice::x11AppDpiY(screen);</font></pre>
<p>you can rewrite it as</p>
<pre> bool isDefault = qApp-&gt;x11Info(screen).appDpiY();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppRootWindow"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QPaintDevice::x11AppRootWindow ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#appRootWindow">QX11Info::appRootWindow</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> unsigned long window = QPaintDevice::x11AppRootWindow(screen);</font></pre>
<p>you can rewrite it as</p>
<pre> unsigned long window = qApp-&gt;x11Info(screen).appRootWindow();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppScreen"></a>int QPaintDevice::x11AppScreen ()&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#screen">QX11Info::screen</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> int screen = QPaintDevice::x11AppScreen();</font></pre>
<p>you can rewrite it as</p>
<pre> int screen = qApp-&gt;x11Info().screen();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11AppVisual"></a>void * QPaintDevice::x11AppVisual ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#visual">QX11Info::visual</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> void *visual = QPaintDevice::x11AppVisual(screen);</font></pre>
<p>you can rewrite it as</p>
<pre> void *visual = qApp-&gt;x11Info(screen).visual();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11Cells"></a>int QPaintDevice::x11Cells () const</h3>
<p>Use <a href="qx11info.html#cells">QX11Info::cells</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> int cells = widget-&gt;x11Cells();</font></pre>
<p>you can rewrite it as</p>
<pre> int cells = widget-&gt;x11Info().cells();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11Colormap"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QPaintDevice::x11Colormap () const</h3>
<p>Use <a href="qx11info.html#colormap">QX11Info::colormap</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> unsigned long screen = widget-&gt;x11Colormap();</font></pre>
<p>you can rewrite it as</p>
<pre> unsigned long screen = widget-&gt;x11Info().colormap();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11DefaultColormap"></a>bool QPaintDevice::x11DefaultColormap () const</h3>
<p>Use <a href="qx11info.html#defaultColormap">QX11Info::defaultColormap</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool isDefault = widget-&gt;x11DefaultColormap();</font></pre>
<p>you can rewrite it as</p>
<pre> bool isDefault = widget-&gt;x11Info().defaultColormap();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11DefaultVisual"></a>bool QPaintDevice::x11DefaultVisual () const</h3>
<p>Use <a href="qx11info.html#defaultVisual">QX11Info::defaultVisual</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool isDefault = widget-&gt;x11DefaultVisual();</font></pre>
<p>you can rewrite it as</p>
<pre> bool isDefault = widget-&gt;x11Info().defaultVisual();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11Depth"></a>int QPaintDevice::x11Depth () const</h3>
<p>Use <a href="qx11info.html#depth">QX11Info::depth</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> int depth = widget-&gt;x11Depth();</font></pre>
<p>you can rewrite it as</p>
<pre> int depth = widget-&gt;x11Info().depth();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11Display"></a>Display * QPaintDevice::x11Display () const</h3>
<p>Use <a href="qx11info.html#display">QX11Info::display</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> Display *display = widget-&gt;x11Display();</font></pre>
<p>you can rewrite it as</p>
<pre> Display *display = QX11Info::display();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qx11info.html#display">QX11Info::display</a>().</p>
<h3 class="fn"><a name="x11Screen"></a>int QPaintDevice::x11Screen () const</h3>
<p>Use <a href="qx11info.html#screen">QX11Info::screen</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> int screen = widget-&gt;x11Screen();</font></pre>
<p>you can rewrite it as</p>
<pre> int screen = widget-&gt;x11Info().screen();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<h3 class="fn"><a name="x11SetAppDpiX"></a>void QPaintDevice::x11SetAppDpiX ( int <i>dpi</i>, int <i>screen</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#setAppDpiX">QX11Info::setAppDpiX</a>() instead.</p>
<h3 class="fn"><a name="x11SetAppDpiY"></a>void QPaintDevice::x11SetAppDpiY ( int <i>dpi</i>, int <i>screen</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qx11info.html#setAppDpiY">QX11Info::setAppDpiY</a>() instead.</p>
<h3 class="fn"><a name="x11Visual"></a>void * QPaintDevice::x11Visual () const</h3>
<p>Use <a href="qx11info.html#visual">QX11Info::visual</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> void *visual = widget-&gt;x11Visual();</font></pre>
<p>you can rewrite it as</p>
<pre> void *visual = widget-&gt;x11Info().visual();</pre>
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
